package com.scommunity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.scommunity.admin.vo.UserQO;
import com.scommunity.domain.Emp;
import com.scommunity.domain.Owner;
import com.scommunity.domain.User;

import java.util.List;

public interface IUserService extends IService<User> {
    void addUser(User user);

    PageInfo<User> findPageInfoByCondition(UserQO userQO, int pageNum, int pageSize);

    List<User> getAll();

    void update(User user);

    void updateUserStatusById(String id, String status);

    User loginByAccount(String userName, String userPassword);

    User loginByPhone(String phone);

    Owner getInfoByUserId(Long userId);

    Long getOwnerId(Long userId);

}
